<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="merchantapi_conversions_v1.html">Merchant API</a> . <a href="merchantapi_conversions_v1.accounts.html">accounts</a> . <a href="merchantapi_conversions_v1.accounts.conversionSources.html">conversionSources</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new conversion source.</p>
<p class="toc_element">
  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.</p>
<p class="toc_element">
  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Fetches a conversion source.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves the list of conversion sources the caller has access to.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.</p>
<p class="toc_element">
  <code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
  <pre>Creates a new conversion source.

Args:
  parent: string, Required. The merchant account that will own the new conversion source. Format: `accounts/{account}` (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
  &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
  &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
    &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  },
  &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
    &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
    &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
  &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
  &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
  &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
    &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  },
  &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
    &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
    &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
  &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
}</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
  <pre>Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.

Args:
  name: string, Required. The name of the conversion source to be deleted. Format: `accounts/{account}/conversionSources/{conversion_source}` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, x__xgafv=None)</code>
  <pre>Fetches a conversion source.

Args:
  name: string, Required. The name of the conversion source to be fetched. Format: `accounts/{account}/conversionSources/{conversion_source}` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
  &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
  &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
    &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  },
  &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
    &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
    &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
  &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code>
  <pre>Retrieves the list of conversion sources the caller has access to.

Args:
  parent: string, Required. The merchant account who owns the collection of conversion sources. Format: `accounts/{account}` (required)
  pageSize: integer, Optional. The maximum number of conversion sources to return in a page. If no `page_size` is specified, `100` is used as the default value. The maximum value is `200`. Values above `200` will be coerced to `200`. Regardless of pagination, at most `200` conversion sources are returned in total.
  pageToken: string, Optional. Page token.
  showDeleted: boolean, Optional. Show deleted (archived) conversion sources. By default, deleted conversion sources are not returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for the ListConversionSources method.
  &quot;conversionSources&quot;: [ # List of conversion sources.
    { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
      &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
      &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
      &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
        &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
          &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
          &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
          &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
            { # Message representing the type of a conversion event.
              &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
              &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
            },
          ],
        },
        &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
        &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
      },
      &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
        &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
          &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
          &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
          &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
            { # Message representing the type of a conversion event.
              &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
              &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
            },
          ],
        },
        &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
        &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
        &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
      &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to be used to fetch the next results page.
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.

Args:
  name: string, Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources. (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
  &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
  &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
    &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  },
  &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
    &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
    &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
  &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
}

  updateMask: string, Optional. List of fields being updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
  &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
  &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
    &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  },
  &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
    &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
    &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
  &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
}</pre>
</div>

<div class="method">
    <code class="details" id="undelete">undelete(name, body=None, x__xgafv=None)</code>
  <pre>Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.

Args:
  name: string, Required. The name of the conversion source to be undeleted. Format: `accounts/{account}/conversionSources/{conversion_source}` (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for the UndeleteConversionSource method.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
  &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
  &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
    &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  },
  &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
    &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
      &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
      &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
      &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
        { # Message representing the type of a conversion event.
          &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
          &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
        },
      ],
    },
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
    &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
    &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
  &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
}</pre>
</div>

</body></html>